package com.taobao.matrix.eagle.beak;

public class URLRegexMapping extends URLMapping {
	public URLRegexMapping(String target, String pattern, String handlerClassName) {
		super(target, pattern, handlerClassName);
	}
	
	@Override
	public boolean matchTarget(String requestPath) {
		return requestPath.matches(target);
	}

	@Override
	public boolean matchPattern(String targetPath) {
		return targetPath.matches(pattern);
	}
}
